﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CategoryList.ascx.cs"
    Inherits="X.WebSite.Controls.CategoryList" %>
<table border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td style="width: 5px;">
            <img src="/Images/lc.gif" alt="" />
        </td>
        <td style="background: url('/Images/mb.gif') repeat-x; text-align: center; width: 191px;">
            <span style="color: #0d4587; font-size: 18px; font-weight: bold;">Product Catalogue</span>
        </td>
        <td style="width: 4px;">
            <img src="/Images/rc.gif" alt="" />
        </td>
    </tr>
</table>
<div class="LeftNavigation">
    <ul>
        <%
            System.Collections.Generic.IList<X.Entity.ProductCategoryInfo> list = X.Bll.ProductCategory.GetCategoryList();

            foreach (X.Entity.ProductCategoryInfo categoryInfo in list)
            {
                Response.Write(string.Format("<li><a href=\"/Product/{0}.aspx\" title=\"{1}\">{2}</a></li>", X.Common.StringUtils.StringToUrl(categoryInfo.CategoryName, categoryInfo.CategoryId), X.Common.StringUtils.HtmlDecode(categoryInfo.CategoryName), categoryInfo.CategoryName));
            }
        %>
    </ul>
</div>
